home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / SDKs / Word Services SDK 1.0.6 / Writeswell Jr 1.2.1 Sources ƒ / LaunchApplication note < prev    next >
Encoding:
Internet Message Format  |  1993-07-07  |  1014 b   |  [TEXT/ttxt]

  1. From: flaps@dgp.toronto.edu (Alan J Rosenthal)
  2. Subject: astonishing LaunchApplication fact!
  3. Organization: Dynamic Graphics Project, University of Toronto
  4. Date: 7 Jul 93 18:58:31 GMT
  5. Lines: 16
  6.  
  7.  
  8. I have discovered that the FSSpec pointed to by the launchAppSpec field in the
  9. parameter block for LaunchApplication is accessed AFTER LaunchApplication
  10. RETURNS.  Thus you should not free it immediately afterwards, or if it is a
  11. local variable of a procedure, you must declare it as static so it persists if
  12. you're going to return from that procedure in the near future.
  13.  
  14. This is what my problem last week with regards to launching applications with
  15. documents was really all about.
  16.  
  17. It is consistent with my observations for it to be the case that this field is
  18. accessed only when the application is actually launched, which occurs when you
  19. do your next WaitNextEvent.  In any case though, this pointer you pass in is
  20. being held on to for some amount of time.
  21.  
  22. Alan "an Apple(tm) a day keeps your MacsBug away" Rosenthal